package cn.com.bluemoon.daps.common.sql;

import java.util.LinkedHashMap;

/**
 * ApiModelProperty(value = "用于数据对比中多版本的关联键值", hidden = true)
 * TableField(exist = false)
 * private String bmKey;
 *
 * @author Jarod.Kong
 * @date 2021/1/15 8:27
 */
public interface IDbDataSource {
    public String getBmKey();

    public void setBmKey(String bmKey);

    /**
     * 增加获取实现类的排序
     * cn.com.bluemoon.daps.model.entity.DapDataModelTableField#getRank()
     *
     * @return rank
     */
    default Integer getRank(){
        return null;
    }

    public default String[] sqlCompareFields() {
        return new String[0];
    }

    /**
     * 增加获取对比字段属性和字段描述信息
     * @return map
     */
    public default LinkedHashMap<String, String> sqlCompareFieldAndDesc() {
        return new LinkedHashMap<>();
    }
}
